package com.tjhzzx.ibmsSupervisor.servlet;


import com.tjhzzx.ibmsSupervisor.model.alarm.BAlarmRoot;
import com.tjhzzx.ibmsSupervisor.model.dashboard.BDashboardRoot;
import com.tjhzzx.ibmsSupervisor.model.history.BHistoryRoot;
import com.tjhzzx.ibmsSupervisor.model.realtime.BRealTimeRoot;

import javax.baja.sys.Flags;
import javax.baja.sys.Property;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;
import javax.baja.web.BWebServlet;

public class BBaseServlet extends BWebServlet {
    
  public static final Property servletName = newProperty(Flags.READONLY, "", null);
  
  public String getServletName() { return getString(servletName); }
  
  public void setServletName(String v) { setString(servletName, v, null); }

  public static final Property description = newProperty(0, "", null);

  public String getDescription() { return getString(description); }

  public void setDescription(String v) { setString(description, v, null); }

  public static final Property dashboardRoot = newProperty(0, new BDashboardRoot(), null);

  public BDashboardRoot getDashboardRoot() {
    return (BDashboardRoot) get(dashboardRoot);
  }

  public void setDashboardRoot(BDashboardRoot v) {
    set(dashboardRoot, v, null);
  }

  @SuppressWarnings("deprecation")
  public static final Property realTimeRoot = newProperty(0, new BRealTimeRoot(), null);

  @SuppressWarnings("deprecation")
  public BRealTimeRoot getRealTimeRoot() {
    return (BRealTimeRoot) get(realTimeRoot);
  }

  @SuppressWarnings("deprecation")
  public void setRealTimeRoot(BRealTimeRoot v) {
    set(realTimeRoot, v, null);
  }

  @SuppressWarnings("deprecation")
  public static final Property historyRoot = newProperty(0, new BHistoryRoot(), null);

  @SuppressWarnings("deprecation")
  public BHistoryRoot getHistoryRoot() {
    return (BHistoryRoot) get(historyRoot);
  }

  @SuppressWarnings("deprecation")
  public void setHistoryRoot(BHistoryRoot v) {
    set(historyRoot, v, null);
  }

  public static final Property alarmRoot = newProperty(0, new BAlarmRoot(), null);

  public BAlarmRoot getAlarmRoot() {
    return (BAlarmRoot) get(alarmRoot);
  }

  public void setAlarmRoot(BAlarmRoot v) {
    set(alarmRoot, v, null);
  }

  @Override
  public Type getType() { return TYPE; }
  public static final Type TYPE = Sys.loadType(BBaseServlet.class);

}
